package com.disease.api.service.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.disease.api.service.entity.BaseUser;
import com.disease.api.service.entity.DeathCardWorkFlow;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@DS("master")
public interface DeathCardWorkFlowMapper extends BaseMapper<DeathCardWorkFlow>{

    List<DeathCardWorkFlow> selectBySerialNumber(@Param("serialNumber") String serialNumber);

    List<DeathCardWorkFlow> selectByPatientId(@Param("patientId") String patientId);

    List<DeathCardWorkFlow> queryBySelect(DeathCardWorkFlow deathCardWorkFlow);

    void insertOne(DeathCardWorkFlow deathCardWorkFlow);
    void updateWorkFlowBySeries(@Param("oldSeriesNumber") String oldSeriesNumber,@Param("newSeriesNumber") String newSeriesNumber);
}
